package com.ztgf.order.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.ztgf.order.models.bo.OrderInvoiceBO;
import com.ztgf.order.models.bo.OrderMyInvocieBO;
import com.ztgf.order.models.dto.OrderInvoiceDTO;
import com.ztgf.order.models.vo.OrderInvoiceDetailsVO;
import com.ztgf.order.models.vo.OrderInvoiceVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单发票管理映射
 *
 * @author chenyu.wang
 * @Date 2020-06-03 15:58:16
 */
@Mapper
public interface OrderInvoiceMapper extends BaseMapper<OrderInvoiceDTO> {


    /**
     * description: 个人中心，我的发票列表
     * param: [shopId]
     * author: chenyu.wang
     * date: 2020-06-04
     * return: java.util.List<com.ztgf.order.models.vo.OrderInvoiceVO>
     */
    List<OrderInvoiceVO> queryMyOderInvocie(Page<OrderInvoiceVO> page, @Param("item") OrderMyInvocieBO bo);

    /*
     * @description:根据id查询订单发票详情
     * @author: chenyu.wang
     * @date: 2020-08-18
     * @param:
     * @return:
     */
    OrderInvoiceDetailsVO queryById(@Param("id") Long id);
}
